package cn.qzit.entity;

/**
 * ClassName : cn.qzit.entity.Dog
 * Desc : TODO
 *
 * @author : LINPQ
 * @date : 2022/4/27 14:25
 */
public class Dog extends Animal{

    private String name;

    public Dog(String name){
        this.name = name;
    }

    public Dog(){
        this.name = "富贵";
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void hello() {
        System.out.println("dog");
    }
}
